<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //原数组不变

        //concat()方法连结多个数组
        var arr1=[1,2,3,4];
        var arr2=[5,6,7,8];
        var arr3=[9,10,11];
        var arr=arr1.concat(arr2,arr3);
        console.log(arr)//[1,2,3,4,5,6,7,8,9,10,11]
        console.log(arr1)//[1,2,3,4]



    </script>
</body>
</html>